package java67_adv6;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;

public class OutputStreamTest1 {

	public static void main(String[] args) {
		// OutputStream:
		try {
			// 能创建文件,不能创建目录
			OutputStream out = new FileOutputStream("d:/logs/java67.txt");
			out.write(65);
			out.write(66);
			out.write(67);
			// 没有out.write(21016);
			byte[] b = { 97, 98, 99 };
			out.write(b);
			out.write("何涛2今天旷课了".getBytes());
			out.close();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
